const config = require('conf/config');
const api = require('libs/api');
const net = require('libs/net');
const user = require('libs/user');
const util = require('libs/util');

App({
	api: api,
	user: user,
	globalData: {
		userInfo: null  // 用户数据
	},
	onLaunch: function() {
		this.config = config;
		this.util = util;
		this.api.init(config);

		this.api.request('login/do', null, function(err, data){
			if(err){

			}
			console.log(data);
		});
	}
});
